//
//  QLNavigationController.swift
//  QdLife
//
//  Created by x on 15/11/6.
//  Copyright © 2015年 Xia. All rights reserved.
//

import UIKit

class QLNavigationController: UINavigationController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        self.topViewController!.navigationItem.rightBarButtonItem = QLBarButtonItem.barButtonItem(title: "登陆/注册", imageName: nil, target: self, action: "login")
    }
    
    @objc private func login() {
        printLog(__FUNCTION__)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
